/**
 *
 */
package com.dididoctor.patient.Bean;

import org.litepal.crud.DataSupport;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * �Ự��Ϣ��
 *
 * @author mahuihuang
 */
public class MessageChatBean extends DataSupport implements Serializable {


    public final static int VIEW_TYPE_TEXT = 110000;//字符类型的消息
    public final static int VIEW_TYPE_IMG = 110001;//图片类型消息
    public final static int VIEW_TYPE_VOICE = 110002;//语音消息

    public static List<Integer> getViewTypeLAR() {
        List<Integer> viewtypelaf = new ArrayList<Integer>();
        viewtypelaf.add(VIEW_TYPE_TEXT);
        viewtypelaf.add(VIEW_TYPE_IMG);
        viewtypelaf.add(VIEW_TYPE_VOICE);
        return viewtypelaf;
    }


    public final static int LEFT_TEXT = 0;//左边的文本消息 
    public final static int RIGHT_TEXT = 1;//右边的文本消息

    public final static int LEFT_IMG = 2;//左边的图片类型消息
    public final static int RIGHT_IMG = 3;//右边的图片类型消息

    public final static int LEFT_VOICE = 4;//左边的语音消息
    public final static int RIGHT_VOICE = 5;//右边的语音消息


    public static List<Integer> getPositionLeftList() {
        List<Integer> positionleft = new ArrayList<Integer>();
        positionleft.add(LEFT_TEXT);
        positionleft.add(LEFT_IMG);
        positionleft.add(LEFT_VOICE);
        return positionleft;
    }

    public static List<Integer> getPositionRightList() {
        List<Integer> positionright = new ArrayList<Integer>();
        positionright.add(RIGHT_TEXT);
        positionright.add(RIGHT_IMG);
        positionright.add(RIGHT_VOICE);
        return positionright;
    }

    private String position;
    private boolean isComMeg = true;
    private String createTime; //时间  getTime()
    private String fId; //资源ID
    private String senduid; //消息来源userId    getFromAccount   getSessionId()
    private String senduName; //消息来源userNickNam  前传
    private String id; //消息id  getUuid()
    private String content; //消息内容  getContent()
    private String msgCode; //消息编码 推送数据基本格式  getMsgType()
    private String touid;  //消息接收人userId   前传
    private String touName;  // 消息接收人userNickName   前传
    private String readStatus;//阅读状态
    private String msgType;
    private boolean isshowTime;

    public boolean isshowTime() {
        return isshowTime;
    }

    public void setIsshowTime(boolean isshowTime) {
        this.isshowTime = isshowTime;
    }

    public String getMsgType() {
        return msgType;
    }

    public void setMsgType(String msgType) {
        this.msgType = msgType;
    }

    public String getReadStatus() {
        return readStatus;
    }

    public void setReadStatus(String readStatus) {
        this.readStatus = readStatus;
    }

    public String getSenduid() {
        return senduid;
    }

    public void setSenduid(String senduid) {
        this.senduid = senduid;
    }

    public String getSenduName() {
        return senduName;
    }

    public void setSenduName(String senduName) {
        this.senduName = senduName;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getTouid() {
        return touid;
    }

    public void setTouid(String touid) {
        this.touid = touid;
    }

    public String getTouName() {
        return touName;
    }

    public void setTouName(String touName) {
        this.touName = touName;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getfId() {
        return fId;
    }

    public void setfId(String fId) {
        this.fId = fId;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }


    public String getMsgCode() {
        return msgCode;
    }

    public void setMsgCode(String msgCode) {
        this.msgCode = msgCode;
    }


    public boolean isComMeg() {
        return isComMeg;
    }

    public void setIsComMeg(boolean isComMeg) {
        this.isComMeg = isComMeg;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }


}
